/*
 * main.cpp
 *
 *  Created on: Nov 14, 2016
 *      Author: swolice
 */

#include <iostream>
#include <stdio.h>

struct biology{
	bool living;
};

struct animal:biology {
	bool movale;
	void findfood()
	{

	}
};

struct plant:biology
{
	bool growable;
};

struct beast:animal
{
	void sleep() {

	}
};




struct human:animal
{
	void sleep()
	{
		std::cout<<"I'm sleeping...\n"	<<std::endl;
	}

	void work()
	{
		std::cout<<"I'm working...\n"<<std::endl;
	}
};

struct A
{
	int i;
	int getI()
	{
		return i;
	}
};

class B
{
	int i;
	int getI()
	{
		return i;
	}
};

int main(int argc, char **argv) {
	A a;
	B b;
	a.i=1;
	a.getI();

	b.i=2;
	b.getI();

	return 0;
}




int main1(int argc, char **argv) {
	human hu;
	hu.living=true;
	hu.sleep();
	hu.work();

	std::cout<<"press any key to continue...."<<std::endl;

	getchar();

	return 0;
}






